package cn.gailvlun.gll.chatlib.bean;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;



public class ChatResMsg {
    private ChatMsgType type;
    private String payload;
    private Date timestamp;
    private int width;
    private int height;
    private String id;
    private String class_type;
    @SerializedName("at_all")
    private boolean atAll;
    @SerializedName("at")
    private List<Integer> atWhomList;
    private String text;

    public ChatMsgType getType() {
        return type;
    }

    public void setType(ChatMsgType type) {
        this.type = type;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isAtAll() {
        return atAll;
    }

    public void setAtAll(boolean atAll) {
        this.atAll = atAll;
    }

    public List<Integer> getAtWhomList() {
        return atWhomList;
    }

    public void setAtWhomList(List<Integer> atWhomList) {
        if (this.atWhomList == null) {
            this.atWhomList = new ArrayList<>();
        }
        this.atWhomList.addAll(atWhomList);
    }

    public String getClass_type() {
        return class_type;
    }

    public void setClass_type(String class_type) {
        this.class_type = class_type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
